package com.ryder.subject.application.convert;

import com.ryder.subject.application.dto.SubjectAnswerDTO;
import com.ryder.subject.application.dto.SubjectInfoDTO;
import com.ryder.subject.domain.entity.SubjectAnswerBO;
import com.ryder.subject.domain.entity.SubjectInfoBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 描述: 答案DTO转换
 *
 * @author Ryder
 * @version 1.0
 * @since 1.0 // 版本号，指明从哪个版本开始
 * 更新日期: 2025/02/05
 */

@Mapper
public interface SubjectAnswerDTOConvert {

    SubjectAnswerDTOConvert INSTANCE = Mappers.getMapper(SubjectAnswerDTOConvert.class);
    // DTO转BO
    SubjectAnswerBO convertDtoToBo(SubjectAnswerDTO subjectAnswerDTO);
    List<SubjectAnswerBO> convertDtoToBoList(List<SubjectAnswerDTO> subjectAnswerList);

}
